//
//  HomePage.m
//  AskApp
//
//  Created by Gordon Liu on 11-8-25.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "HomePage.h"
#import "RootViewController.h"

@implementation HomePage

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [askBtn release];
    askBtn = nil;
    [giveOpinionBtn release];
    giveOpinionBtn = nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (void)dealloc {
    [askBtn release];
    [giveOpinionBtn release];
    [super dealloc];
}

- (IBAction)askButtonPressed:(id)sender {
    if (rootViewController != nil) {
        [rootViewController showAskPage];
    }
}

- (IBAction)giveOpinionButtonPressed:(id)sender {
    if (rootViewController != nil) {
        [rootViewController showVotePage];
    }
}
@end
